import java.util.Scanner;

public class AverageScoreCalculator {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int total = 0;
        int score;

        for (int i = 1; i <= 5; i++) {
            System.out.print("请输入第 " + i + " 位学生的分数（0-100）: ");
            score = scanner.nextInt();
            while (score < 0 || score > 100) {
                System.out.println("分数无效，请重新输入！（0-100）");
                score = scanner.nextInt();
            }
            total += score;
        }

        double average = (double) total / 5;
        System.out.println("总分为：" + total + "，平均分为：" + average);
        scanner.close();
    }
}
